package com.dhnsoft.education.controller.edu;
import com.dhnsoft.education.utils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @Description
 * @ClassName EduLoginController
 * @Author dhn
 * @date 2022.02.12 14:33
 */
//登录接口
@RestController
@RequestMapping("/eduservice/user")
//@CrossOrigin
public class EduLoginController {


    //login
    @PostMapping("login")
    public R login(){


        return R.ok().data("token","admin");
    }

    //info
    @GetMapping("info")
    public R info(){


        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","http://www.weixintouxiang.cn/weixin/20140607090832328.gif");
    }
}
